// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import SaveManager from "../../Managers/SaveManager";
import BaseCharacterElement from "../BaseCharacterElement";
import EnemyElement from "../EnemyElement";
import SlimeIdleState from "./SlimeIdleState";
import SlimeRunState from "./SlimeRunState";

const { ccclass, property } = cc._decorator;

@ccclass
export default class SlimeElement extends EnemyElement {

    protected onLoad() {
        super.onLoad();
        this.idleState = new SlimeIdleState(this, "run");
        this.runState = new SlimeRunState(this, "run");
    }

    protected onEnable(): void {
        super.onEnable();

        this.drawHp();
    }


}
